package com.lninl.repository;

import com.lninl.model.Uri;
import org.springframework.dao.DataAccessException;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Collection;

/**
 * @author qinains
 */
public interface UriRepository extends PagingAndSortingRepository<Uri, Long> {
    Collection<Uri> findByStatus(Integer status) throws DataAccessException;

    Uri findById(Long id) throws DataAccessException;

    Uri findByTitle(String title) throws DataAccessException;

    Uri findByUrl(String url);
}
